﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObviousCode.Common.Utils.Library.Dictionaries.Persistance;
using ObviousCode.Aspect.PluginLibrary.Interfaces;

namespace ObviousCode.UI.Aspect.Persistence.AspectMenu
{
    public abstract class MenuSaver : Saver<IAspectMenu>
    {
        protected abstract override void PerformSave(IAspectMenu saveData);
      
        protected override string Tag
        {
            get { return MenuSaver.ObjectTag; }
        }

        public abstract override int Version { get; }

        public static MenuSaver LatestVersion
        {
            get
            {
                return new MenuSaver_V1();
            }
        }

        public static string ObjectTag
        {
            get
            {
                return "aspect-menu";
            }
        }
    }
}
